package wx.xml.wutka.dtd;

import java.io.PrintWriter;

/**
 * Represents an external System ID in an entity declaration
 *
 * @author Mark Wutka
 * @version $Revision: 1.1 $ $Date: 2004/08/19 05:30:23 $ by $Author: aslom $
 */

public class DTDSystem extends DTDExternalID {
    public DTDSystem() {
    }

    /**
     * Writes out a declaration for this SYSTEM ID
     */
    public void write(PrintWriter out) {
        if (system != null) {
            out.print("SYSTEM \"");
            out.print(system);
            out.print("\"");
        }
    }

    public boolean equals(Object ob) {
        if (ob == this)
            return true;
        if (!(ob instanceof DTDSystem))
            return false;

        return super.equals(ob);
    }
}
